package com.windfone.service.impl;

import java.util.List;

import com.windfone.dao.AskReponseDao;
import com.windfone.model.Askreponse;
import com.windfone.service.AskReponseService;

public class AskReponseServiceImpl implements AskReponseService {
	private AskReponseDao askReponseDao;
	public AskReponseDao getAskReponseDao() {
		return askReponseDao;
	}

	public void setAskReponseDao(AskReponseDao askReponseDao) {
		this.askReponseDao = askReponseDao;
	}

	public int addAsk(Askreponse askreponse) {
		return askReponseDao.addAsk(askreponse);
	}

	public int updateAsk(Askreponse askreponse) {
		
		return askReponseDao.updateAsk(askreponse);
	}

	public int deleAsk(Askreponse askreponse) {
		
		return askReponseDao.deleAsk(askreponse);
	}

	public int reponseAsk(Askreponse askreponse) {
		
		return askReponseDao.reponseAsk(askreponse);
	}

	public int upReponseAsk(Askreponse askreponse) {
		
		return askReponseDao.upReponseAsk(askreponse);
	}

	public List<Askreponse> getAskReponseByProductAndType(int productId,	int typeId) {
		
		return askReponseDao.getAskReponseByProductAndType(productId, typeId);
	}

	public int getAllRecorderNumber(String whereCondition) {
		return askReponseDao.getAllRecorderNumber( whereCondition );
	}

	public List<Askreponse> geAskAccordByCondition(int beginRecord,	String whereCondition) {
		return askReponseDao.geAskAccordByCondition(beginRecord,whereCondition );
	}

	public Askreponse getAskReponseById(int askreponseRecordId) {
		return askReponseDao.getAskReponseById(askreponseRecordId);
	}

}
